package com.lightbikes.grid;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;

import com.lightbikes.LBGame;

public class LBGrid extends JComponent{
	
	public static final int SQUARE_WIDTH = 10;
	public static final int SQUARE_HEIGHT = 10;
	public static final int SQUARE_OFFSET = 2;

	public LBGrid(){
		
	}
	
	public void paint(Graphics g){
		Graphics2D g2 = (Graphics2D) g;
		g.setColor(Color.BLACK);
		
		for(int i = 0; i < LBGame.FRAME_WIDTH; i += (SQUARE_WIDTH + SQUARE_OFFSET)){
			g.drawRect(
					i, 
					0, 
					i + SQUARE_OFFSET, 
					LBGame.FRAME_HEIGHT);
		}
		
	}

}
